package com.cn.ant.modules.school.dao;

import com.cn.ant.common.persistence.CrudDao;
import com.cn.ant.common.persistence.MyBatisRepository;
import com.cn.ant.modules.school.entity.School;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 学校信息DAO接口
 * @author AntDream
 * @version 2015-08-14
 */
@MyBatisRepository
public interface SchoolDao extends CrudDao<School> {

    public School getByCode(@Param("schoolCode") String schoolCode, @Param("schoolCodeSn") String schoolCodeSn);

    public List<School> queryVolunteerSchool(Map<String, Object> params);

    public List<School> searchSchool(Map<String, String> params);

    /**
     * 获取预测投档线
     * @param params
     * @return
     */
    public int getForecastScore(Map<String, Object> params);

    /**
     * 查询学校关联专业的录取线
     * @param params
     * @return
     */
    public List<Map<String,String>> querySchoolMajor(Map<String,String> params);

    /**
     * 学校排行
     * @param params
     * @return
     */
    public List<Map<String, String>> querySchoolRank(Map<String, Object> params);

    public List<Map<String, String>> queryFavSchool(Map<String, String> params);
}